<?php
require_once("php/adminPageAe.php");
?>
<?php include"header.inc.php"; ?>  
   <tr align="center">
   	    <td colspan="2">
			<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">													
				<TR>
					<TD width="200" valign="	top" class="left_bg" align="right" ><br><?php include("left.inc.php");?></td>
					<td height="10">			
						<table width="100%"  border="0" cellspacing="0" cellpadding="0">
						    <tr>
							    <td width="100%" valign="top" align="center">
									<table width="100%"  border="0" cellpadding="0" cellspacing="1" >
							          	<tr>
								            <td  align="left" background="images/heading_bg.gif" bgcolor="#FFFFFF" class="h1">
												<table   border="0" cellspacing="0" cellpadding="0" align="left" width="100%">
								              		<tr>
							    				       	<td height="42" background="images/bg3.gif" width="53"  class="h1" align="right"><img src="images/cp_icon.gif" width="25" height="25" hspace="5"></td>
											           	<td height="42"  background="images/bg3.gif" align="left" class="h1">Admin Content Manager<?php if($pageId){?>-<?=$adminPageName?><?php } ?></td>
														<td height="42"  background="images/bg3.gif" align="right" class="h1"><a href='adminPageManager.php' class="blue_txt"><u>Back to Page Manager</u></a>&nbsp;&nbsp;</td>
                				              		</tr>
            									</table>
											</td>
							          	</tr>
							          	<tr>
								            <td height="272" align="center" valign="top" >
							              		<table width="100%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#B1B1B1">
          	
          	<tr>
            <td height="272" align="center" valign="top" bgcolor="F0EEEC" class="mainBoxBg">
			<br>
			<?php displaySessMesg(); ?><br>
			<table width="89%"  border="0" align="center" cellpadding="4" cellspacing="1" class="tblBg">
              <form name="frm" action="" method="post" enctype="multipart/form-data" onSubmit="return validate_admin_page(this)">
                <tr>
                  <td colspan="2" class="header_row"> 
                    <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="20" class="header_row">Page Detail</td>
                        <td align="right" class="gray_txt">Required Fields <span class="redtxt">*</span></td>
                      </tr>
                    </table></td>
                  </tr>
				  <tr class="evenRow" height="10">
                  <td width="16%" align="right" valign="top" class="gray_txt">Page Heading <span class="redtxt">*</span></td>
                  <td width="84%" valign="top"><input name="pageHeading" type="text" class="textbox" id="pageHeading" value="<?=$pageHeading?>" size="97" border="0"></td>
                </tr>
                <tr class="oddRow" height="10">
                  <td width="16%" align="right" valign="top" class="gray_txt">Page Name <span class="redtxt">*</span></td>
                  <td width="84%" valign="top"><input name="pageName" type="text" class="textbox" id="pageName" value="<?=$pageName?>" size="97" border="0"></td>
                </tr>
                <tr class="evenRow" >
                  <td align="right" valign="top" class="gray_txt">Page Content <span class="redtxt">*</span></td>
					  <td><?=getSpawAdvEditor('pageContent', $field_value=$pageContent, '100%', '400px')?></td>
                </tr>
                <tr class="oddRow">
                  <td class="gray_txt">&nbsp;</td>
                  <td><input name="Submit" type="submit" class="buttons" value="Submit"></td>
                </tr>
              </form>
			  </table>
			<br></td>
          	</tr>
        	</table>
											</td>
							          	</tr>
					        	</table>
							</td>
					    </tr>
			    	</table>
				</td>
			</TR>
		</TABLE>
	</td>
</tr>
<?php include ("footer.inc.php"); ?>